package com.anjubao.parking.municipal.parkinglot.mapper;

import com.anjubao.parking.municipal.parkinglot.dto.ParkingLotSlotFailureDto;
import com.anjubao.parking.municipal.parkinglot.model.ParkingLotDeviceFailure;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
*
* @author anjubao
*/
@Mapper
public interface ParkingLotDeviceFailureMapper extends BaseMapper<ParkingLotDeviceFailure> {

    /**
     * 根据泊位code获取设备状态
     * @param code
     * @return
     */
    List<ParkingLotSlotFailureDto> getStatusFromFailure(@Param("code") String code);
}